package com.example.iotmanagerment26.service.impl;

import com.example.iotmanagerment26.domain.JsonData;
import com.example.iotmanagerment26.service.KeyCheckService;
import org.springframework.stereotype.Service;


@Service
public class KeyCheckSeviceImpl implements KeyCheckService {


    @Override
    public boolean check(String key) {
        if(key.equals("ccy520")){
            return true;
        }
        return false;
    }

    public JsonData sendKeyError(){
        return new JsonData(1,"没密钥你访问个蛋！","密钥错误！");
    }
}
